const util = require('../../utils/util.js');
const api = require('../../config/api.js');
const user = require('../../services/user.js');
const app = getApp();

var interval;

Page({
  data: {
    pintuan: []
  },
  onLoad: function (options) {
    this.getAssembleList();
  },
  
  getAssembleList: function () {
    let that = this;
    util.request(api.AssembleProductList, {}, 'post').then(function (data) {
      if (data.type === 'success') {
        that.setData({
          pintuan: data.data.pintuan
        });
      } else {
        console.log(data.data.content);
      }
    });
  }
})